Mollie\WooCommerce\Payment\PaymentService B

Total Complexity 96
Dependencies 15
Dependents 6
Total lines 821
Lines of code 495
Logical lines of code 229
Comment lines 149
Methods 26
Properties 10

Methods 26

Method Rating Maintainability Complexity Lines of code
processAsMollieOrder()
B
36 17 86
processAsMolliePayment()
A
46 11 41
correctSurchargeFee()
A
46 8 39
processPayment()
A
43 7 51
updateOrderStatus()
A
53 8 23
paymentTypeBasedOnProducts()
S
51 5 31
processSubscriptionSwitch()
S
57 4 17
processPaymentForMollie()
S
52 3 29
updatePaymentStatusForDelayedMethods()
S
61 4 12
processValidMandate()
S
56 3 18
paymentTypeBasedOnGateway()
S
63 4 10
needsSubscriptionSwitch()
S
69 4 6
reportPaymentCreationFailure()
S
62 3 11
reportPaymentSuccess()
S
56 2 19
saveSubscriptionMandateData()
S
59 2 13
noValidMandateForSubsSwitchFailure()
S
61 1 15
__construct()
S
63 1 11
processInitialOrderStatus()
S
64 1 11
subsSwitchCompleted()
S
64 1 10
setGateway()
S
81 1 3
getUserMollieCustomerId()
S
73 1 5
getProcessPaymentRedirect()
S
67 1 9
orderAddFee()
S
66 1 9
removeOrderFee()
S
72 1 6
paymentObjectFailure()
S
76 1 4
saveMollieInfo()
S
70 1 6